<!DOCTYPE html>
    <html>
    <head>
        <title>回收单 - {$site_name} </title>
        <meta name="keywords" content="{$post_keywords}" />
        <meta name="description" content="{$post_excerpt}">
        <tc_include file="Public:head" />
		<style>
        	.list-group-item{ font-size:16px;}
        </style>
    </head>
<body>
<tc_include file="Public:nav" />
<div class="container">

<div class="row">
	<div class="col-md-4">
    	<div class="panel panel-default" id="order_panel">
          <div class="panel-heading">{$pname}</div>
          <div class="panel-body">
            {$json}            
          </div>
          <div class="panel-footer">
          <span>估价：￥{$price}</span>
          </div>
        </div>
        <div class="input-group">
        		<input type="hidden" value="{$id}" id="orderid">
                <span class="input-group-addon">手机号</span>
                <input type="text" name="order_tel"  class="form-control" id="tel" placeholder="请输入手机号">
                <span class="input-group-btn">
                	<button class="btn btn-primary" type="button" id="order">提交</button>
                </span>
            </div>
    </div>
    <div class="col-md-8"></div>
</div>
<tc_include file="Public:footer"/>
</div>             
<tc_include file="Public:scripts"/>
<script type="text/javascript" src="__ROOT__/statics/js/product.js?v="></script>
<script>	
	$("#order").on("click",function(){
		var tel = $("#tel").val();
		var url  = "{:U('Product/order_save')}";
		var orderid = $("#orderid").val();
			
		if(!check_mobile(tel)){
			alert("手机号码有误!"); return
		}
		$.post(url,{'id':orderid,'mobile':tel},function(msg){			
			if(msg.status == 1)
			{
				alert(msg.info);
				location.href=msg.data;
			}
		})
	})
</script>
</body>
</html>